package com.bruce.pattern.behavioral.state;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by bruce on 2018/11/11 21:18
 */
@Slf4j
public class StopState extends AbsVideoState {
    @Override
    public void play() {
        super.setContextState(VideoContext.PLAY_STATE);
    }

    @Override
    public void speed() {
        log.error("停止状态不能快进");
    }

    @Override
    public void stop() {
        log.info("停止播放状态");
    }
}
